package com.bjdd.jdy.ui.pay;

import com.bjdd.jdy.base.BaseModel;
import com.bjdd.jdy.base.BasePresenter;
import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.base.BaseView;
import com.bjdd.jdy.entity.PayBean;

import rx.Observable;

/**
 * Created by Administrator on 2017/5/9.
 */

public interface PayContract {
    interface View extends BaseView{
        void codSuccess(String url);
        void paySuccess(PayBean payBean);
        void canNotSign();
        void canSign();
        void payBack();
    }
    interface Model extends BaseModel{
        Observable<BaseResult<String>> cod(String token, String orderNo);
        Observable<BaseResult<PayBean>> helpPay(String token,String orderNo);
    }
    abstract class Presenter extends BasePresenter<Model,View>{
        abstract void getUrl(String orderNo);
        abstract void helpPay(String orderNo);
        abstract boolean isRange(double lat,double lng,double lat1,double lng1);
        abstract void isCanSign(double lat,double lng);
    }
}
